home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / tnos / tnos100s / mkvers.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-31  |  603 b   |  27 lines

  1. #include <stdio.h>
  2. #define VERSION_ON_FILE 1
  3. #define VERSION_FILE_BUILD 1
  4. #include "version.c"
  5.  
  6. void
  7. main (argc, argv)
  8. int argc;
  9. char *argv[];
  10. {
  11. FILE *fp;
  12. char file[256];
  13.  
  14.     if (argc < 2)    {
  15.         printf ("mkvers: syntax error - no TNOS root directory given\n");
  16.         exit (0);
  17.     }
  18.     sprintf (file, "%s/spool/help/version.hlp", argv[1]);
  19.     if (freopen (file, "w", stdout) == NULL)    {
  20.         fprintf (stderr, "mkvers: can't open version file '%s'\n", file);
  21.         exit (errno);
  22.     }
  23.     fprintf (stderr, "Creating new TNOS VersionFile....\n");
  24.     fflush (stderr);
  25.     doversion (0, (char **) 0, (void *) 0);
  26. }
  27.